package com.atguigu.ssyx.sys.mapper;


import com.atguigu.ssyx.model.sys.Ware;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 仓库表 Mapper 接口
 * </p>
 *
 * @author atguigu
 * @since 2025-09-12
 */
@Repository
public interface WareMapper extends BaseMapper<Ware> {
    @Select("select * from `shequ-sys`.ware where name = #{wareName}")
    Ware selectWareByName(String wareName);
    @Update("UPDATE `shequ-sys`.ware SET is_deleted = 0, update_time = NOW() WHERE id = #{id}")
    void updateIsdeleteById(Long id);
}
